package cn.msqweb.feign;


import cn.msqweb.entity.Prod;
import cn.msqweb.feign.sentinel.MemberProductFeignSentinel;
import cn.msqweb.model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 会员业务模块调用商品业务模块feign接口
 */
@FeignClient(value = "product-service",fallback = MemberProductFeignSentinel.class)
public interface MemberProductFeign {

    @GetMapping("prod/prod/getProdListByIds")
    public Result<List<Prod>> getProdListByIds(@RequestParam List<Long> ids);
}
